package com.cloud.magic_api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.magic_api.entity.SysUserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 开发账户信息
 *
 * @author yzj
 * @since 2022-08-26
 */
@Mapper
public interface SysUserInfoMapper extends BaseMapper<SysUserInfo> {

    /**
     * 开发账户信息分页
     *
     * @author yzj
     */
    public List<SysUserInfo> selectUserList(@Param("param") SysUserInfo param);

    /**
     * 修改开发账户状态
     *
     * @param state
     * @param userId
     * @return
     */
    public int updateUserState(@Param("state") String state, @Param("userId") Long userId);

    /**
     * 开发者信息登录
     *
     * @param userName
     * @param password
     * @return
     */
    public SysUserInfo userLogin(@Param("userName") String userName, @Param("password") String password);

}
